package com.interest.business.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.interest.business.domain.vo.InterestCodeVo;
import com.interest.common.annotation.Excel;
import com.interest.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 下单记录对象 pay_record
 *
 * @author ruoyi
 * @date 2024-04-17
 */
public class PayRecord extends InterestCodeVo {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private String id;

    /**
     * 兑换码
     */
    @Excel(name = "兑换码")
    private String code;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /**
     * 关联权益
     */
    @Excel(name = "关联权益")
    private String interestId;

    /**
     * 分配状态 0未分配 1已分配
     */
    @Excel(name = "分配状态 0未分配 1已分配")
    private String status;

    /**
     * 发放状态 0待售 1已售 2已领取 3已过期
     */
    @Excel(name = "发放状态 0待售 1已售 2已领取 3已过期")
    private String saleStatus;

    /**
     * 关联订单
     */
    @Excel(name = "关联订单")
    private String orderNo;

    /**
     * 有效起始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "有效起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 有效截止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "有效截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;



    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setInterestId(String interestId) {
        this.interestId = interestId;
    }

    public String getInterestId() {
        return interestId;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setSaleStatus(String saleStatus) {
        this.saleStatus = saleStatus;
    }

    public String getSaleStatus() {
        return saleStatus;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }


    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("interestId", getInterestId())
                .append("status", getStatus())
                .append("saleStatus", getSaleStatus())
                .append("orderNo", getOrderNo())
                .append("receiveTime", getReceiveTime())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("payCount", getPayCount())
                .append("orderTime", getOrderTime())
                .toString();
    }
}
